n = int(input())
if n == 0:
    print("average = 0.0")
    print("count = 0")
else:
    grades = list(map(int, input().split()))
    count = 0
    aver = sum(grades)/n
    for g in grades:
        if g >=60:
            count += 1
    print(f"average = {aver:.1f}")
    print(f"count = {count}")

